<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>AmpleHarvest: abs_RestService.php Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">AmpleHarvest
   &#160;<span id="projectnumber">0.0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('abs___rest_service_8php.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">abs_RestService.php</div>  </div>
</div>
<div class="contents">
<a href="abs___rest_service_8php.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00002"></a><a class="code" href="classabs___rest_service.html">00002</a>         <span class="keyword">class </span><a class="code" href="classabs___rest_service.html">abs_RestService</a>
<a name="l00003"></a>00003         {
<a name="l00004"></a><a class="code" href="classabs___rest_service.html#a910d05b6fb4bacbd5dcd40d4a564119e">00004</a>                 <span class="keyword">const</span> <a class="code" href="classabs___rest_service.html#a910d05b6fb4bacbd5dcd40d4a564119e">C_STR_METHOD_CONNECT</a> = <span class="stringliteral">&quot;connect&quot;</span>;
<a name="l00005"></a><a class="code" href="classabs___rest_service.html#ac56c1180a77efe854b07da06d26c06d4">00005</a>                 <span class="keyword">const</span> <a class="code" href="classabs___rest_service.html#ac56c1180a77efe854b07da06d26c06d4">C_STR_METHOD_DELETE</a> = <span class="stringliteral">&quot;delete&quot;</span>;
<a name="l00006"></a><a class="code" href="classabs___rest_service.html#a514e1da65baede1c144edc0524d8cf14">00006</a>                 <span class="keyword">const</span> <a class="code" href="classabs___rest_service.html#a514e1da65baede1c144edc0524d8cf14">C_STR_METHOD_GET</a> = <span class="stringliteral">&quot;get&quot;</span>;
<a name="l00007"></a><a class="code" href="classabs___rest_service.html#a614febdb8d98bf135a77712617421ff1">00007</a>                 <span class="keyword">const</span> <a class="code" href="classabs___rest_service.html#a614febdb8d98bf135a77712617421ff1">C_STR_METHOD_HEAD</a> = <span class="stringliteral">&quot;head&quot;</span>;
<a name="l00008"></a><a class="code" href="classabs___rest_service.html#a965b0061d997a13df994c864381f2095">00008</a>                 <span class="keyword">const</span> <a class="code" href="classabs___rest_service.html#a965b0061d997a13df994c864381f2095">C_STR_METHOD_INFO</a> = <span class="stringliteral">&quot;info&quot;</span>;
<a name="l00009"></a><a class="code" href="classabs___rest_service.html#a28c1226aac15d334b89c19e42e23e857">00009</a>                 <span class="keyword">const</span> <a class="code" href="classabs___rest_service.html#a28c1226aac15d334b89c19e42e23e857">C_STR_METHOD_POST</a> = <span class="stringliteral">&quot;post&quot;</span>;
<a name="l00010"></a><a class="code" href="classabs___rest_service.html#a282c217750b5df24134e5d5c52e1e1a3">00010</a>                 <span class="keyword">const</span> <a class="code" href="classabs___rest_service.html#a282c217750b5df24134e5d5c52e1e1a3">C_STR_METHOD_PUT</a> = <span class="stringliteral">&quot;put&quot;</span>;
<a name="l00011"></a><a class="code" href="classabs___rest_service.html#a532d71c416f0f9fdd3b03769010e9ef0">00011</a>                 <span class="keyword">const</span> <a class="code" href="classabs___rest_service.html#a532d71c416f0f9fdd3b03769010e9ef0">C_STR_METHOD_TRACE</a> = <span class="stringliteral">&quot;trace&quot;</span>;
<a name="l00012"></a>00012 
<a name="l00013"></a><a class="code" href="classabs___rest_service.html#a38e37583e55645cdcbcb87d1f1bbe865">00013</a>                 <span class="keyword">const</span> <a class="code" href="classabs___rest_service.html#a38e37583e55645cdcbcb87d1f1bbe865">C_STR_OUTPUT_FORMAT_JSON</a> = <span class="stringliteral">&quot;json&quot;</span>;
<a name="l00014"></a><a class="code" href="classabs___rest_service.html#a9b6b85144d4cbc545f3955fbdf36c6fa">00014</a>                 <span class="keyword">const</span> <a class="code" href="classabs___rest_service.html#a9b6b85144d4cbc545f3955fbdf36c6fa">C_STR_OUTPUT_FORMAT_HTML</a> = <span class="stringliteral">&quot;json&quot;</span>;
<a name="l00015"></a>00015 
<a name="l00016"></a><a class="code" href="classabs___rest_service.html#a613a772a35f2f0afcb8cf9d49c468977">00016</a>                 <span class="keyword">protected</span> <a class="code" href="classabs___rest_service.html#a613a772a35f2f0afcb8cf9d49c468977">$m_str_Method</a> = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00017"></a><a class="code" href="classabs___rest_service.html#a5e3c26355f641393a51d69fb48bec78a">00017</a>                 <span class="keyword">protected</span> <a class="code" href="classabs___rest_service.html#a5e3c26355f641393a51d69fb48bec78a">$m_str_OutputMethod</a> = <a class="code" href="classabs___rest_service.html#a38e37583e55645cdcbcb87d1f1bbe865">self::C_STR_OUTPUT_FORMAT_JSON</a>;
<a name="l00018"></a><a class="code" href="classabs___rest_service.html#af5a805cf08cb8343c7b2500420bad60b">00018</a>                 <span class="keyword">protected</span> <a class="code" href="classabs___rest_service.html#af5a805cf08cb8343c7b2500420bad60b">$m_str_DataID</a> = <span class="stringliteral">&quot;data&quot;</span>;
<a name="l00019"></a><a class="code" href="classabs___rest_service.html#a1a29436dbf97a10af1e283b81652242d">00019</a>                 <span class="keyword">protected</span> <a class="code" href="classabs___rest_service.html#a1a29436dbf97a10af1e283b81652242d">$m_str_TotalID</a> = <span class="stringliteral">&quot;total&quot;</span>;
<a name="l00020"></a>00020 
<a name="l00021"></a><a class="code" href="classabs___rest_service.html#a095c5d389db211932136b53f25f39685">00021</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a095c5d389db211932136b53f25f39685">__construct</a>()
<a name="l00022"></a>00022                 {
<a name="l00023"></a>00023                         $this-&gt;m_str_Method = strtolower($_SERVER[<span class="stringliteral">&#39;REQUEST_METHOD&#39;</span>]);
<a name="l00024"></a>00024                         $this-&gt;m_str_OutputMethod = <a class="code" href="classabs___rest_service.html#a38e37583e55645cdcbcb87d1f1bbe865">self::C_STR_OUTPUT_FORMAT_JSON</a>;
<a name="l00025"></a>00025 
<a name="l00026"></a>00026                         <span class="keywordflow">switch</span> ($this-&gt;m_str_Method)
<a name="l00027"></a>00027                         {
<a name="l00028"></a>00028                                 <span class="keywordflow">case</span> self::C_STR_METHOD_CONNECT:
<a name="l00029"></a>00029                                         parse_str(file_get_contents(<span class="stringliteral">&#39;php://input&#39;</span>), $arr_Vars);
<a name="l00030"></a>00030                                         $this-&gt;<a class="code" href="classabs___rest_service.html#a65155cbed8d8c71178de077c1b8a77dd">connect_Function</a>($arr_Vars);
<a name="l00031"></a>00031                                         <span class="keywordflow">break</span>;
<a name="l00032"></a>00032                                 <span class="keywordflow">case</span> self::C_STR_METHOD_DELETE:
<a name="l00033"></a>00033                                         parse_str(file_get_contents(<span class="stringliteral">&#39;php://input&#39;</span>), $arr_Vars);
<a name="l00034"></a>00034                                         $this-&gt;<a class="code" href="classabs___rest_service.html#afe5f43d02ba301e6c549f2c7046df194">delete_Function</a>($arr_Vars);
<a name="l00035"></a>00035                                         <span class="keywordflow">break</span>;
<a name="l00036"></a>00036                                 <span class="keywordflow">case</span> self::C_STR_METHOD_GET:
<a name="l00037"></a>00037                                         $this-&gt;<a class="code" href="classabs___rest_service.html#a924a5038dd5afecaf2a4e62d4a6c8655">get_Function</a>($_GET);
<a name="l00038"></a>00038                                         <span class="keywordflow">break</span>;
<a name="l00039"></a>00039                                 <span class="keywordflow">case</span> self::C_STR_METHOD_HEAD:
<a name="l00040"></a>00040                                         parse_str(file_get_contents(<span class="stringliteral">&#39;php://input&#39;</span>), $arr_Vars);
<a name="l00041"></a>00041                                         $this-&gt;<a class="code" href="classabs___rest_service.html#ae626eba6f09f252084d1f6933fe32c47">head_Function</a>($arr_Vars);
<a name="l00042"></a>00042                                         <span class="keywordflow">break</span>;
<a name="l00043"></a>00043                                 <span class="keywordflow">case</span> self::C_STR_METHOD_INFO:
<a name="l00044"></a>00044                                         parse_str(file_get_contents(<span class="stringliteral">&#39;php://input&#39;</span>), $arr_Vars);
<a name="l00045"></a>00045                                         $this-&gt;<a class="code" href="classabs___rest_service.html#a0560574307a8738c0f86b7b4f384d8c5">info_Function</a>($arr_Vars);
<a name="l00046"></a>00046                                         <span class="keywordflow">break</span>;
<a name="l00047"></a>00047                                 <span class="keywordflow">case</span> self::C_STR_METHOD_POST:
<a name="l00048"></a>00048                                         $this-&gt;<a class="code" href="classabs___rest_service.html#a3e1b69d094ca3a1e79eaaeff87a3b18b">post_Function</a>($_POST);
<a name="l00049"></a>00049                                         <span class="keywordflow">break</span>;
<a name="l00050"></a>00050                                 <span class="keywordflow">case</span> self::C_STR_METHOD_PUT:
<a name="l00051"></a>00051                                         parse_str(file_get_contents(<span class="stringliteral">&#39;php://input&#39;</span>), $arr_Vars);
<a name="l00052"></a>00052                                         $this-&gt;<a class="code" href="classabs___rest_service.html#aaeaa83533525c6fcbfc12528991e8403">put_Function</a>($arr_Vars);
<a name="l00053"></a>00053                                         <span class="keywordflow">break</span>;
<a name="l00054"></a>00054                                 <span class="keywordflow">case</span> self::C_STR_METHOD_TRACE:
<a name="l00055"></a>00055                                         parse_str(file_get_contents(<span class="stringliteral">&#39;php://input&#39;</span>), $arr_Vars);
<a name="l00056"></a>00056                                         $this-&gt;<a class="code" href="classabs___rest_service.html#a9459f727e3e65cd1d03f660c5b37c18f">trace_Function</a>($arr_Vars);
<a name="l00057"></a>00057                                         <span class="keywordflow">break</span>;
<a name="l00058"></a>00058                                 <span class="keywordflow">default</span>:
<a name="l00059"></a>00059                                         $this-&gt;<a class="code" href="classabs___rest_service.html#a9e812b1b3fb4d3b9565bbdfa8c15eaad">default_Function</a>(null);
<a name="l00060"></a>00060                                         <span class="keywordflow">break</span>;
<a name="l00061"></a>00061                         }
<a name="l00062"></a>00062                 }
<a name="l00063"></a>00063 
<a name="l00064"></a><a class="code" href="classabs___rest_service.html#aa465de3e4b5f6dee6c3128286d2fbe5d">00064</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#aa465de3e4b5f6dee6c3128286d2fbe5d">setDataID</a>($str_DataID)
<a name="l00065"></a>00065                 {
<a name="l00066"></a>00066                         $this-&gt;m_str_DataID = $str_DataID;
<a name="l00067"></a>00067                 }
<a name="l00068"></a>00068 
<a name="l00069"></a><a class="code" href="classabs___rest_service.html#a3262a48737d0bea18ab8c1a90cb1cede">00069</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a3262a48737d0bea18ab8c1a90cb1cede">setTotalID</a>(<a class="code" href="task__runner_8php.html#a638f33f9a90952d7cebdf44588e8f40b">$str_ID</a>)
<a name="l00070"></a>00070                 {
<a name="l00071"></a>00071                         $this-&gt;m_str_TotalID = <a class="code" href="task__runner_8php.html#a638f33f9a90952d7cebdf44588e8f40b">$str_ID</a>;
<a name="l00072"></a>00072                 }
<a name="l00073"></a>00073 
<a name="l00074"></a><a class="code" href="classabs___rest_service.html#a65155cbed8d8c71178de077c1b8a77dd">00074</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a65155cbed8d8c71178de077c1b8a77dd">connect_Function</a>($arr_Values)
<a name="l00075"></a>00075                 {
<a name="l00076"></a>00076                         print(<span class="stringliteral">&quot;Method - &quot;</span> . $this-&gt;m_str_Method . <span class="stringliteral">&quot;\n&quot;</span>);
<a name="l00077"></a>00077                         print_r($arr_Values);
<a name="l00078"></a>00078                         print(<span class="stringliteral">&quot;&lt;br/&gt;\n&quot;</span>);
<a name="l00079"></a>00079                 }
<a name="l00080"></a>00080 
<a name="l00081"></a><a class="code" href="classabs___rest_service.html#afe5f43d02ba301e6c549f2c7046df194">00081</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#afe5f43d02ba301e6c549f2c7046df194">delete_Function</a>($arr_Values)
<a name="l00082"></a>00082                 {
<a name="l00083"></a>00083                         print(<span class="stringliteral">&quot;Method - &quot;</span> . $this-&gt;m_str_Method . <span class="stringliteral">&quot;\n&quot;</span>);
<a name="l00084"></a>00084                         print_r($arr_Values);
<a name="l00085"></a>00085                         print(<span class="stringliteral">&quot;&lt;br/&gt;\n&quot;</span>);
<a name="l00086"></a>00086                 }
<a name="l00087"></a>00087 
<a name="l00088"></a><a class="code" href="classabs___rest_service.html#a924a5038dd5afecaf2a4e62d4a6c8655">00088</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a924a5038dd5afecaf2a4e62d4a6c8655">get_Function</a>($arr_Values)
<a name="l00089"></a>00089                 {
<a name="l00090"></a>00090                         print(<span class="stringliteral">&quot;Method - &quot;</span> . $this-&gt;m_str_Method . <span class="stringliteral">&quot;\n&quot;</span>);
<a name="l00091"></a>00091                         print_r($arr_Values);
<a name="l00092"></a>00092                         print(<span class="stringliteral">&quot;\n&quot;</span>);
<a name="l00093"></a>00093                 }
<a name="l00094"></a>00094 
<a name="l00095"></a><a class="code" href="classabs___rest_service.html#ae626eba6f09f252084d1f6933fe32c47">00095</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#ae626eba6f09f252084d1f6933fe32c47">head_Function</a>($arr_Values)
<a name="l00096"></a>00096                 {
<a name="l00097"></a>00097                         print(<span class="stringliteral">&quot;Method - &quot;</span> . $this-&gt;m_str_Method . <span class="stringliteral">&quot;\n&quot;</span>);
<a name="l00098"></a>00098                         print_r($arr_Values);
<a name="l00099"></a>00099                         print(<span class="stringliteral">&quot;\n&quot;</span>);
<a name="l00100"></a>00100                 }
<a name="l00101"></a>00101 
<a name="l00102"></a><a class="code" href="classabs___rest_service.html#a0560574307a8738c0f86b7b4f384d8c5">00102</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a0560574307a8738c0f86b7b4f384d8c5">info_Function</a>($arr_Values)
<a name="l00103"></a>00103                 {
<a name="l00104"></a>00104                         $this-&gt;<a class="code" href="classabs___rest_service.html#a8c63acd3c0db73df141eb9653b2e3a7b">output_Connect_Info</a>();
<a name="l00105"></a>00105                         $this-&gt;<a class="code" href="classabs___rest_service.html#adae223d55feb0809f08ce6bf74f181a1">output_Delete_Info</a>();
<a name="l00106"></a>00106                         $this-&gt;<a class="code" href="classabs___rest_service.html#abfe44e5c0f625dc04da061bd6a9719b1">output_Get_Info</a>();
<a name="l00107"></a>00107                         $this-&gt;<a class="code" href="classabs___rest_service.html#a98801fe29f8579b603bb11622806f40d">output_Head_Info</a>();
<a name="l00108"></a>00108                         $this-&gt;<a class="code" href="classabs___rest_service.html#a69f4ad8768d673d12378d804b7278488">output_Info_Info</a>();
<a name="l00109"></a>00109                         $this-&gt;<a class="code" href="classabs___rest_service.html#ae84ab8f33aa6683a0a8f0216404ee7b6">output_Post_Info</a>();
<a name="l00110"></a>00110                         $this-&gt;<a class="code" href="classabs___rest_service.html#a3596ab5a5468f8f2855e16d0ae8e7598">output_Put_Info</a>();
<a name="l00111"></a>00111                         $this-&gt;<a class="code" href="classabs___rest_service.html#a33fc3f7fff15c16bd91fa53516bdf49f">output_Trace_Info</a>();
<a name="l00112"></a>00112                 }
<a name="l00113"></a>00113 
<a name="l00114"></a><a class="code" href="classabs___rest_service.html#a8c63acd3c0db73df141eb9653b2e3a7b">00114</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a8c63acd3c0db73df141eb9653b2e3a7b">output_Connect_Info</a>()
<a name="l00115"></a>00115                 {
<a name="l00116"></a>00116                         print(<span class="stringliteral">&quot;&lt;h1&gt;CONNECT&lt;/h1&gt;&quot;</span>);
<a name="l00117"></a>00117                 }
<a name="l00118"></a><a class="code" href="classabs___rest_service.html#adae223d55feb0809f08ce6bf74f181a1">00118</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#adae223d55feb0809f08ce6bf74f181a1">output_Delete_Info</a>()
<a name="l00119"></a>00119                 {
<a name="l00120"></a>00120                         print(<span class="stringliteral">&quot;&lt;h1&gt;DELETE&lt;/h1&gt;&quot;</span>);
<a name="l00121"></a>00121                 }
<a name="l00122"></a><a class="code" href="classabs___rest_service.html#abfe44e5c0f625dc04da061bd6a9719b1">00122</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#abfe44e5c0f625dc04da061bd6a9719b1">output_Get_Info</a>()
<a name="l00123"></a>00123                 {
<a name="l00124"></a>00124                         print(<span class="stringliteral">&quot;&lt;h1&gt;GET&lt;/h1&gt;&quot;</span>);
<a name="l00125"></a>00125                         print(<span class="stringliteral">&quot;&lt;p&gt;&quot;</span>);
<a name="l00126"></a>00126                         print(<span class="stringliteral">&quot;The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI. If the Request-URI &quot;</span> .
<a name="l00127"></a>00127                                 <span class="stringliteral">&quot;refers to a data-producing process, it is the produced data which shall be returned as the entity in the response and not the source &quot;</span> .
<a name="l00128"></a>00128                                 <span class="stringliteral">&quot;text of the process, unless that text happens to be the output of the process.&quot;</span>);
<a name="l00129"></a>00129                         print(<span class="stringliteral">&quot;&lt;/p&gt;&lt;p&gt;&quot;</span>);
<a name="l00130"></a>00130                         print(<span class="stringliteral">&quot;The semantics of the GET method change to a \&quot;conditional GET\&quot; if the request message includes an If-Modified-Since, If-Unmodified-Since, &quot;</span> .
<a name="l00131"></a>00131                                 <span class="stringliteral">&quot;If-Match, If-None-Match, or If-Range header field. A conditional GET method requests that the entity be transferred only under the &quot;</span> .
<a name="l00132"></a>00132                                 <span class="stringliteral">&quot;circumstances described by the conditional header field(s). The conditional GET method is intended to reduce unnecessary network usage &quot;</span> .
<a name="l00133"></a>00133                                 <span class="stringliteral">&quot;by allowing cached entities to be refreshed without requiring multiple requests or transferring data already held by the client.&quot;</span>);
<a name="l00134"></a>00134                         print(<span class="stringliteral">&quot;&lt;/p&gt;&lt;p&gt;&quot;</span>);
<a name="l00135"></a>00135                         print(<span class="stringliteral">&quot;The semantics of the GET method change to a \&quot;partial GET\&quot; if the request message includes a Range header field. A partial GET requests &quot;</span> .
<a name="l00136"></a>00136                                 <span class="stringliteral">&quot;that only part of the entity be transferred, as described in section 14.35. The partial GET method is intended to reduce unnecessary &quot;</span> .
<a name="l00137"></a>00137                                 <span class="stringliteral">&quot;network usage by allowing partially-retrieved entities to be completed without transferring data already held by the client.&quot;</span>);
<a name="l00138"></a>00138                         print(<span class="stringliteral">&quot;&lt;/p&gt;&lt;p&gt;&quot;</span>);
<a name="l00139"></a>00139                         print(<span class="stringliteral">&quot;The response to a GET request is cacheable if and only if it meets the requirements for HTTP caching described in section 13.&quot;</span>);
<a name="l00140"></a>00140                         print(<span class="stringliteral">&quot;&lt;/p&gt;&quot;</span>);
<a name="l00141"></a>00141                 }
<a name="l00142"></a><a class="code" href="classabs___rest_service.html#a98801fe29f8579b603bb11622806f40d">00142</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a98801fe29f8579b603bb11622806f40d">output_Head_Info</a>()
<a name="l00143"></a>00143                 {
<a name="l00144"></a>00144                         print(<span class="stringliteral">&quot;&lt;h1&gt;HEAD&lt;/h1&gt;&quot;</span>);
<a name="l00145"></a>00145                 }
<a name="l00146"></a><a class="code" href="classabs___rest_service.html#a69f4ad8768d673d12378d804b7278488">00146</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a69f4ad8768d673d12378d804b7278488">output_Info_Info</a>()
<a name="l00147"></a>00147                 {
<a name="l00148"></a>00148                         print(<span class="stringliteral">&quot;&lt;h1&gt;INFO&lt;/h1&gt;&quot;</span>);
<a name="l00149"></a>00149                 }
<a name="l00150"></a><a class="code" href="classabs___rest_service.html#ae84ab8f33aa6683a0a8f0216404ee7b6">00150</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#ae84ab8f33aa6683a0a8f0216404ee7b6">output_Post_Info</a>()
<a name="l00151"></a>00151                 {
<a name="l00152"></a>00152                         print(<span class="stringliteral">&quot;&lt;h1&gt;POST&lt;/h1&gt;&quot;</span>);
<a name="l00153"></a>00153                 }
<a name="l00154"></a><a class="code" href="classabs___rest_service.html#a3596ab5a5468f8f2855e16d0ae8e7598">00154</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a3596ab5a5468f8f2855e16d0ae8e7598">output_Put_Info</a>()
<a name="l00155"></a>00155                 {
<a name="l00156"></a>00156                         print(<span class="stringliteral">&quot;&lt;h1&gt;PUT&lt;/h1&gt;&quot;</span>);
<a name="l00157"></a>00157                 }
<a name="l00158"></a><a class="code" href="classabs___rest_service.html#a33fc3f7fff15c16bd91fa53516bdf49f">00158</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a33fc3f7fff15c16bd91fa53516bdf49f">output_Trace_Info</a>()
<a name="l00159"></a>00159                 {
<a name="l00160"></a>00160                         print(<span class="stringliteral">&quot;&lt;h1&gt;TRACE&lt;/h1&gt;&quot;</span>);
<a name="l00161"></a>00161                 }
<a name="l00162"></a>00162 
<a name="l00163"></a><a class="code" href="classabs___rest_service.html#a3e1b69d094ca3a1e79eaaeff87a3b18b">00163</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a3e1b69d094ca3a1e79eaaeff87a3b18b">post_Function</a>($arr_Values)
<a name="l00164"></a>00164                 {
<a name="l00165"></a>00165                         print(<span class="stringliteral">&quot;Method - &quot;</span> . $this-&gt;m_str_Method . <span class="stringliteral">&quot;\n&quot;</span>);
<a name="l00166"></a>00166                         print_r($arr_Values);
<a name="l00167"></a>00167                         print(<span class="stringliteral">&quot;\n&quot;</span>);
<a name="l00168"></a>00168                 }
<a name="l00169"></a>00169 
<a name="l00170"></a><a class="code" href="classabs___rest_service.html#aaeaa83533525c6fcbfc12528991e8403">00170</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#aaeaa83533525c6fcbfc12528991e8403">put_Function</a>($arr_Values)
<a name="l00171"></a>00171                 {
<a name="l00172"></a>00172                         print(<span class="stringliteral">&quot;Method - &quot;</span> . $this-&gt;m_str_Method . <span class="stringliteral">&quot;\n&quot;</span>);
<a name="l00173"></a>00173                         print_r($arr_Values);
<a name="l00174"></a>00174                         print(<span class="stringliteral">&quot;\n&quot;</span>);
<a name="l00175"></a>00175                 }
<a name="l00176"></a>00176 
<a name="l00177"></a><a class="code" href="classabs___rest_service.html#a9459f727e3e65cd1d03f660c5b37c18f">00177</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a9459f727e3e65cd1d03f660c5b37c18f">trace_Function</a>($arr_Values)
<a name="l00178"></a>00178                 {
<a name="l00179"></a>00179                         print(<span class="stringliteral">&quot;Method - &quot;</span> . $this-&gt;m_str_Method . <span class="stringliteral">&quot;\n&quot;</span>);
<a name="l00180"></a>00180                         print_r($arr_Values);
<a name="l00181"></a>00181                         print(<span class="stringliteral">&quot;\n&quot;</span>);
<a name="l00182"></a>00182                 }
<a name="l00183"></a>00183 
<a name="l00184"></a><a class="code" href="classabs___rest_service.html#a9e812b1b3fb4d3b9565bbdfa8c15eaad">00184</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a9e812b1b3fb4d3b9565bbdfa8c15eaad">default_Function</a>($arr_Values)
<a name="l00185"></a>00185                 {
<a name="l00186"></a>00186                         print(<span class="stringliteral">&quot;Method - default&lt;br/&gt;\n&quot;</span>);
<a name="l00187"></a>00187                         print_r($arr_Values);
<a name="l00188"></a>00188                         print(<span class="stringliteral">&quot;\n&quot;</span>);
<a name="l00189"></a>00189                 }
<a name="l00190"></a>00190 
<a name="l00191"></a><a class="code" href="classabs___rest_service.html#a8bada55960c44f5eabc269c6eb41f2e9">00191</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a8bada55960c44f5eabc269c6eb41f2e9">output_Error</a>($str_Message)
<a name="l00192"></a>00192                 {
<a name="l00193"></a>00193                         $arr_Output = array();
<a name="l00194"></a>00194 
<a name="l00195"></a>00195                         $arr_Output[<span class="stringliteral">&quot;success&quot;</span>] = <span class="keyword">false</span>;
<a name="l00196"></a>00196                         $arr_Output[<span class="stringliteral">&quot;errors&quot;</span>] = array();
<a name="l00197"></a>00197                         $arr_Output[<span class="stringliteral">&quot;errors&quot;</span>][<span class="stringliteral">&quot;msg&quot;</span>] = $str_Message;
<a name="l00198"></a>00198 
<a name="l00199"></a>00199                         $this-&gt;<a class="code" href="classabs___rest_service.html#a68476e47f9f7235df0271869b9fa0e07">output_Array</a>($arr_Output);
<a name="l00200"></a>00200                 }
<a name="l00201"></a>00201 
<a name="l00202"></a><a class="code" href="classabs___rest_service.html#abeed1fc839726b9d57b309cb07f636c4">00202</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#abeed1fc839726b9d57b309cb07f636c4">output_Data</a>($arr_Data, $int_Size = <span class="keyword">false</span>, $arr_AddData = null)
<a name="l00203"></a>00203                 {
<a name="l00204"></a>00204                         $arr_Output = array();
<a name="l00205"></a>00205 
<a name="l00206"></a>00206                         <span class="keywordflow">if</span> (!$int_Size)
<a name="l00207"></a>00207                         {
<a name="l00208"></a>00208                                 $int_Size = <span class="keyword">sizeof</span>($arr_Data);
<a name="l00209"></a>00209                         }
<a name="l00210"></a>00210 
<a name="l00211"></a>00211                         <span class="keywordflow">if</span> ($arr_AddData)
<a name="l00212"></a>00212                         {
<a name="l00213"></a>00213                                 $arr_Output = $arr_AddData;
<a name="l00214"></a>00214                         }
<a name="l00215"></a>00215 
<a name="l00216"></a>00216                         $arr_Output[<span class="stringliteral">&quot;success&quot;</span>] = <span class="keyword">true</span>;
<a name="l00217"></a>00217                         $arr_Output[$this-&gt;m_str_DataID] = $arr_Data;
<a name="l00218"></a>00218                         $arr_Output[$this-&gt;m_str_TotalID] = $int_Size;
<a name="l00219"></a>00219 
<a name="l00220"></a>00220                         $this-&gt;<a class="code" href="classabs___rest_service.html#a68476e47f9f7235df0271869b9fa0e07">output_Array</a>($arr_Output);
<a name="l00221"></a>00221                 }
<a name="l00222"></a>00222 
<a name="l00223"></a><a class="code" href="classabs___rest_service.html#a2220c60f8fdd5d19bd07d27a838fe8f7">00223</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a2220c60f8fdd5d19bd07d27a838fe8f7">set_OutputMethod</a>($str_Method)
<a name="l00224"></a>00224                 {
<a name="l00225"></a>00225                         $this-&gt;m_str_OutputMethod = $str_Method;
<a name="l00226"></a>00226                 }
<a name="l00227"></a>00227 
<a name="l00228"></a><a class="code" href="classabs___rest_service.html#a68476e47f9f7235df0271869b9fa0e07">00228</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a68476e47f9f7235df0271869b9fa0e07">output_Array</a>($arr_Array)
<a name="l00229"></a>00229                 {
<a name="l00230"></a>00230                         <span class="keywordflow">switch</span> ($this-&gt;m_str_OutputMethod)
<a name="l00231"></a>00231                         {
<a name="l00232"></a>00232                                 <span class="keywordflow">case</span> self::C_STR_OUTPUT_FORMAT_JSON:
<a name="l00233"></a>00233                                         $this-&gt;<a class="code" href="classabs___rest_service.html#a4fb8e3976aaf70b6fd7a4d755604183b">output_JSON</a>($arr_Array);
<a name="l00234"></a>00234                                         <span class="keywordflow">break</span>;
<a name="l00235"></a>00235                                 <span class="keywordflow">case</span> self::C_STR_OUTPUT_FORMAT_HTML:
<a name="l00236"></a>00236                                         print(<span class="stringliteral">&quot;Write HTML output Method&quot;</span>);
<a name="l00237"></a>00237                                         <span class="keywordflow">break</span>;
<a name="l00238"></a>00238                                 <span class="keywordflow">default</span>:
<a name="l00239"></a>00239                                         print_r($arr_Array);
<a name="l00240"></a>00240                         }
<a name="l00241"></a>00241                 }
<a name="l00242"></a>00242 
<a name="l00243"></a><a class="code" href="classabs___rest_service.html#a4fb8e3976aaf70b6fd7a4d755604183b">00243</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#a4fb8e3976aaf70b6fd7a4d755604183b">output_JSON</a>($arr_Array)
<a name="l00244"></a>00244                 {
<a name="l00245"></a>00245                         header(<span class="stringliteral">&#39;Content-type: application/json; charset=UTF-8&#39;</span>);
<a name="l00246"></a>00246                         die(json_encode($arr_Array));
<a name="l00247"></a>00247                 }
<a name="l00248"></a>00248 
<a name="l00249"></a><a class="code" href="classabs___rest_service.html#ae12badaf8d2de6263801363e998f7fc6">00249</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classabs___rest_service.html#ae12badaf8d2de6263801363e998f7fc6">output_Direct</a>($str_Data)
<a name="l00250"></a>00250                 {
<a name="l00251"></a>00251                         die($str_Data);
<a name="l00252"></a>00252                 }
<a name="l00253"></a>00253 
<a name="l00254"></a>00254         }
<a name="l00255"></a>00255 ?&gt;
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="abs___rest_service_8php.html">abs_RestService.php</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Mon Jan 23 2012 13:34:18 for AmpleHarvest by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
